<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width">
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
	<script src="http://code.jquery.com/jquery-latest.js"></script>
    <script>
	    function change_html(){
	        var font_size=$(window).width()/16;
	        $("html").css('font-size',font_size);
	    }
	    window.onresize=function(){
	        change_html();
	    }
	    change_html();
	</script>
	<title>phpcmsV9 - <?php echo L('member','','member').L('manage_center');?></title>
	<style type="text/css">
		*{margin: 0;padding: 0;text-decoration: none;}
		body{background: #eeeeee;}
		.tc{text-align: center;}
		.fl{float: left;}
		.fr{float: right;}
		.title{width: 16rem;height: 2rem;font-size: 0.68rem;color: #2d2f2c;line-height: 2rem;background: white;}
		.back{width: 2rem;height: 2rem;background: url(images/back_btn.png) 0 no-repeat;background-size: 100% auto;position: fixed;top: 0;}
		.bar{height: 2.383rem;line-height: 2.383rem;background: white;}
		.l_word{width: 2.893rem;padding-left: 0.851rem;font-size: 0.68rem;}
		.gray_line{width: 15rem;height: 1px;background: #eeeeee;margin:0 auto;}
		input{vertical-align: middle;border: none;outline: none;}
		.login{height: 1.91rem;width: 15rem;margin: 0 auto;display: block;margin-top: 0.5rem;border-radius: 0.2rem;color: white;background: red;font-size: 0.68rem;margin-bottom: 0.5rem;}
		.red{font-size: 0.55rem;color: #808d9d;padding-right: 0.5rem;}
	</style>
</head>
	<body>
		<div class="title tc">会员登录
			<div class="back" onclick="history.go(-1)"></div>
		</div>
		<form method="post" action="" id="myform" name="myform" onsubmit="return on_submit()">
			<div class="bar">
				<div class="bar fl l_word">用户名</div>
				<input type="text" id="username" name="username" placeholder="请输入用户名">
			</div>
			<div class="gray_line"></div>
			<div class="bar">
				<div class="bar fl l_word">密码</div>
				<input type="password" id="password" name="password" placeholder="请输入密码">
			</div>
			<div class="gray_line" style="width: 16rem;"></div>
			<input type="submit" name="dosubmit" id="dosubmit" class="login" value="登录">
		</form>
		<a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=public_find_pwd&siteid=<?php echo $siteid;?>" class="red fr">忘记密码?</a>
		<a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>" class="red fr">免费注册</a>
	</body>
	<script type="text/javascript">
		function on_submit(){
			var err_msg = '';
			var username = $('#username').val();
			var password = $('#password').val();
			if (username == '') {
				err_msg += "用户名不能为空\n";
			}
			if (password == '') {
				err_msg += "密码不能为空\n";
			}
			if (err_msg != '') {
				alert(err_msg);
				return false;
			}
			return true;
		}
	</script>
</html>